package config

type SERVER struct {
	Name            string `mapstructure:"APP_NAME" yaml:"name" json:"name"`
	Version         string `mapstructure:"APP_VERSION" yaml:"version" json:"version"`
	Debug           bool   `mapstructure:"APP_DEBUG" yaml:"debug" json:"debug"`
	DefaultTimeZone string `mapstructure:"APP_DEFAULT_TIMEZONE" yaml:"default_timezone" json:"default_time_zone"`

	ListenIp     string `mapstructure:"LISTENIP" yaml:"listenip" json:"listenip"`
	ListenPort   string `mapstructure:"LISTENPORT" yaml:"listenport" json:"listenport"`
	MaxAllowowed int    `mapstructure:"MAXALLOWOWED" yaml:"maxallowowed" json:"maxallowowed"`

	BindUrl    string `mapstructure:"BINDURL" yaml:"bindurl" json:"bindurl"`
	BackendUrl string `mapstructure:"BACKENDURL" yaml:"backendurl" json:"backendurl"`
	H5Url      string `mapstructure:"H5URL" yaml:"h5url" json:"h5url"`

	RouteApiPrefix     string `mapstructure:"ROUTE_API_PREFIX" yaml:"route_api_prefix" json:"route_api_prefix"`
	RouteBackendPrefix string `mapstructure:"ROUTE_BACKEND_PREFIX" yaml:"route_backend_prefix" json:"route_backend_prefix"`
	RouteViewPrefix    string `mapstructure:"ROUTE_VIEW_PREFIX" yaml:"route_view_prefix" json:"route_view_prefix"`
}
